import mountNativeElement from './mountNatvieElement'
import isFunciton from './isFunction'
import mountComponent from './mountComponent'

export default function mountElement (virtualDOM, container){
    // Component Vs NativeElement
    if(isFunciton(virtualDOM)) {
        mountComponent(virtualDOM, container)
    } else {
        mountNativeElement(virtualDOM, container)
    }
}

